myApp.factory('$serIndex',function ($resource,URL) {
    var setSend = function(data, url){
        data = data || {};
        url = api_url + url;
        return $resource(url)
            .save(data)
            .$promise;
    };
    return {
        /*首页相关数据*/
        getData: function(data){
            return setSend(data,'Home/getData');
        }
    }
});